<?php

namespace Aspic\Form\Decorator\Element;

use Aspic as A;
use Aspic\Form;

/**
 * Same as Basic but nest input into the label
 */
class BasicNested extends Basic {
	
	public function out($el) {
		$cb = new A\CodeBuilder;
		
		$cb->next($this->outLabelStart($el));
		$cb->nl($this->outInput($el));
		$cb->nl($this->outLabelEnd($el));
		
		return $cb->out();
	}

}